package com.zy.cloud.service.impl;

import com.zy.cloud.service.UserHystrixService;
import org.springframework.stereotype.Component;

/**
 * @ClassName: UserHystrixServiceImpl
 * @Description: 客户端本地降级处理, 当服务端宕机或其他故障时, 客户端自行执行该类方法
 * @Author: yanzy
 * @Date: 2021/3/4 18:26
 */
@Component
public class UserHystrixServiceImpl implements UserHystrixService {

    @Override
    public String reqOk(Integer id) {
        return "reqOk: 客户端本地服务降级处理";
    }

    @Override
    public String reqTimeOut(Integer id) {
        return "reqTimeOut: 客户端本地服务降级处理";
    }
}
